package com.zshan.clinic.database.model;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class StatClinicMedicalDailyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public StatClinicMedicalDailyExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andClinicIdIsNull() {
            addCriterion("clinic_id is null");
            return (Criteria) this;
        }

        public Criteria andClinicIdIsNotNull() {
            addCriterion("clinic_id is not null");
            return (Criteria) this;
        }

        public Criteria andClinicIdEqualTo(Long value) {
            addCriterion("clinic_id =", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotEqualTo(Long value) {
            addCriterion("clinic_id <>", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdGreaterThan(Long value) {
            addCriterion("clinic_id >", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdGreaterThanOrEqualTo(Long value) {
            addCriterion("clinic_id >=", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdLessThan(Long value) {
            addCriterion("clinic_id <", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdLessThanOrEqualTo(Long value) {
            addCriterion("clinic_id <=", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdIn(List<Long> values) {
            addCriterion("clinic_id in", values, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotIn(List<Long> values) {
            addCriterion("clinic_id not in", values, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdBetween(Long value1, Long value2) {
            addCriterion("clinic_id between", value1, value2, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotBetween(Long value1, Long value2) {
            addCriterion("clinic_id not between", value1, value2, "clinicId");
            return (Criteria) this;
        }

        public Criteria andStatDateIsNull() {
            addCriterion("stat_date is null");
            return (Criteria) this;
        }

        public Criteria andStatDateIsNotNull() {
            addCriterion("stat_date is not null");
            return (Criteria) this;
        }

        public Criteria andStatDateEqualTo(LocalDate value) {
            addCriterion("stat_date =", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateNotEqualTo(LocalDate value) {
            addCriterion("stat_date <>", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateGreaterThan(LocalDate value) {
            addCriterion("stat_date >", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateGreaterThanOrEqualTo(LocalDate value) {
            addCriterion("stat_date >=", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateLessThan(LocalDate value) {
            addCriterion("stat_date <", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateLessThanOrEqualTo(LocalDate value) {
            addCriterion("stat_date <=", value, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateIn(List<LocalDate> values) {
            addCriterion("stat_date in", values, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateNotIn(List<LocalDate> values) {
            addCriterion("stat_date not in", values, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateBetween(LocalDate value1, LocalDate value2) {
            addCriterion("stat_date between", value1, value2, "statDate");
            return (Criteria) this;
        }

        public Criteria andStatDateNotBetween(LocalDate value1, LocalDate value2) {
            addCriterion("stat_date not between", value1, value2, "statDate");
            return (Criteria) this;
        }

        public Criteria andEmpIdIsNull() {
            addCriterion("emp_id is null");
            return (Criteria) this;
        }

        public Criteria andEmpIdIsNotNull() {
            addCriterion("emp_id is not null");
            return (Criteria) this;
        }

        public Criteria andEmpIdEqualTo(Long value) {
            addCriterion("emp_id =", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotEqualTo(Long value) {
            addCriterion("emp_id <>", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdGreaterThan(Long value) {
            addCriterion("emp_id >", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdGreaterThanOrEqualTo(Long value) {
            addCriterion("emp_id >=", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdLessThan(Long value) {
            addCriterion("emp_id <", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdLessThanOrEqualTo(Long value) {
            addCriterion("emp_id <=", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdIn(List<Long> values) {
            addCriterion("emp_id in", values, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotIn(List<Long> values) {
            addCriterion("emp_id not in", values, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdBetween(Long value1, Long value2) {
            addCriterion("emp_id between", value1, value2, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotBetween(Long value1, Long value2) {
            addCriterion("emp_id not between", value1, value2, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpNameIsNull() {
            addCriterion("emp_name is null");
            return (Criteria) this;
        }

        public Criteria andEmpNameIsNotNull() {
            addCriterion("emp_name is not null");
            return (Criteria) this;
        }

        public Criteria andEmpNameEqualTo(String value) {
            addCriterion("emp_name =", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotEqualTo(String value) {
            addCriterion("emp_name <>", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameGreaterThan(String value) {
            addCriterion("emp_name >", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameGreaterThanOrEqualTo(String value) {
            addCriterion("emp_name >=", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLessThan(String value) {
            addCriterion("emp_name <", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLessThanOrEqualTo(String value) {
            addCriterion("emp_name <=", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLike(String value) {
            addCriterion("emp_name like", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotLike(String value) {
            addCriterion("emp_name not like", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameIn(List<String> values) {
            addCriterion("emp_name in", values, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotIn(List<String> values) {
            addCriterion("emp_name not in", values, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameBetween(String value1, String value2) {
            addCriterion("emp_name between", value1, value2, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotBetween(String value1, String value2) {
            addCriterion("emp_name not between", value1, value2, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNoIsNull() {
            addCriterion("emp_no is null");
            return (Criteria) this;
        }

        public Criteria andEmpNoIsNotNull() {
            addCriterion("emp_no is not null");
            return (Criteria) this;
        }

        public Criteria andEmpNoEqualTo(String value) {
            addCriterion("emp_no =", value, "empNo");
            return (Criteria) this;
        }

        public Criteria andEmpNoNotEqualTo(String value) {
            addCriterion("emp_no <>", value, "empNo");
            return (Criteria) this;
        }

        public Criteria andEmpNoGreaterThan(String value) {
            addCriterion("emp_no >", value, "empNo");
            return (Criteria) this;
        }

        public Criteria andEmpNoGreaterThanOrEqualTo(String value) {
            addCriterion("emp_no >=", value, "empNo");
            return (Criteria) this;
        }

        public Criteria andEmpNoLessThan(String value) {
            addCriterion("emp_no <", value, "empNo");
            return (Criteria) this;
        }

        public Criteria andEmpNoLessThanOrEqualTo(String value) {
            addCriterion("emp_no <=", value, "empNo");
            return (Criteria) this;
        }

        public Criteria andEmpNoLike(String value) {
            addCriterion("emp_no like", value, "empNo");
            return (Criteria) this;
        }

        public Criteria andEmpNoNotLike(String value) {
            addCriterion("emp_no not like", value, "empNo");
            return (Criteria) this;
        }

        public Criteria andEmpNoIn(List<String> values) {
            addCriterion("emp_no in", values, "empNo");
            return (Criteria) this;
        }

        public Criteria andEmpNoNotIn(List<String> values) {
            addCriterion("emp_no not in", values, "empNo");
            return (Criteria) this;
        }

        public Criteria andEmpNoBetween(String value1, String value2) {
            addCriterion("emp_no between", value1, value2, "empNo");
            return (Criteria) this;
        }

        public Criteria andEmpNoNotBetween(String value1, String value2) {
            addCriterion("emp_no not between", value1, value2, "empNo");
            return (Criteria) this;
        }

        public Criteria andDeptIdIsNull() {
            addCriterion("dept_id is null");
            return (Criteria) this;
        }

        public Criteria andDeptIdIsNotNull() {
            addCriterion("dept_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeptIdEqualTo(Long value) {
            addCriterion("dept_id =", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotEqualTo(Long value) {
            addCriterion("dept_id <>", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdGreaterThan(Long value) {
            addCriterion("dept_id >", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdGreaterThanOrEqualTo(Long value) {
            addCriterion("dept_id >=", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdLessThan(Long value) {
            addCriterion("dept_id <", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdLessThanOrEqualTo(Long value) {
            addCriterion("dept_id <=", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdIn(List<Long> values) {
            addCriterion("dept_id in", values, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotIn(List<Long> values) {
            addCriterion("dept_id not in", values, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdBetween(Long value1, Long value2) {
            addCriterion("dept_id between", value1, value2, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotBetween(Long value1, Long value2) {
            addCriterion("dept_id not between", value1, value2, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptNameIsNull() {
            addCriterion("dept_name is null");
            return (Criteria) this;
        }

        public Criteria andDeptNameIsNotNull() {
            addCriterion("dept_name is not null");
            return (Criteria) this;
        }

        public Criteria andDeptNameEqualTo(String value) {
            addCriterion("dept_name =", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotEqualTo(String value) {
            addCriterion("dept_name <>", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameGreaterThan(String value) {
            addCriterion("dept_name >", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameGreaterThanOrEqualTo(String value) {
            addCriterion("dept_name >=", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameLessThan(String value) {
            addCriterion("dept_name <", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameLessThanOrEqualTo(String value) {
            addCriterion("dept_name <=", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameLike(String value) {
            addCriterion("dept_name like", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotLike(String value) {
            addCriterion("dept_name not like", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameIn(List<String> values) {
            addCriterion("dept_name in", values, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotIn(List<String> values) {
            addCriterion("dept_name not in", values, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameBetween(String value1, String value2) {
            addCriterion("dept_name between", value1, value2, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotBetween(String value1, String value2) {
            addCriterion("dept_name not between", value1, value2, "deptName");
            return (Criteria) this;
        }

        public Criteria andMedicalCountIsNull() {
            addCriterion("medical_count is null");
            return (Criteria) this;
        }

        public Criteria andMedicalCountIsNotNull() {
            addCriterion("medical_count is not null");
            return (Criteria) this;
        }

        public Criteria andMedicalCountEqualTo(Integer value) {
            addCriterion("medical_count =", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountNotEqualTo(Integer value) {
            addCriterion("medical_count <>", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountGreaterThan(Integer value) {
            addCriterion("medical_count >", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("medical_count >=", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountLessThan(Integer value) {
            addCriterion("medical_count <", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountLessThanOrEqualTo(Integer value) {
            addCriterion("medical_count <=", value, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountIn(List<Integer> values) {
            addCriterion("medical_count in", values, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountNotIn(List<Integer> values) {
            addCriterion("medical_count not in", values, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountBetween(Integer value1, Integer value2) {
            addCriterion("medical_count between", value1, value2, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andMedicalCountNotBetween(Integer value1, Integer value2) {
            addCriterion("medical_count not between", value1, value2, "medicalCount");
            return (Criteria) this;
        }

        public Criteria andRegAmountIsNull() {
            addCriterion("reg_amount is null");
            return (Criteria) this;
        }

        public Criteria andRegAmountIsNotNull() {
            addCriterion("reg_amount is not null");
            return (Criteria) this;
        }

        public Criteria andRegAmountEqualTo(Integer value) {
            addCriterion("reg_amount =", value, "regAmount");
            return (Criteria) this;
        }

        public Criteria andRegAmountNotEqualTo(Integer value) {
            addCriterion("reg_amount <>", value, "regAmount");
            return (Criteria) this;
        }

        public Criteria andRegAmountGreaterThan(Integer value) {
            addCriterion("reg_amount >", value, "regAmount");
            return (Criteria) this;
        }

        public Criteria andRegAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("reg_amount >=", value, "regAmount");
            return (Criteria) this;
        }

        public Criteria andRegAmountLessThan(Integer value) {
            addCriterion("reg_amount <", value, "regAmount");
            return (Criteria) this;
        }

        public Criteria andRegAmountLessThanOrEqualTo(Integer value) {
            addCriterion("reg_amount <=", value, "regAmount");
            return (Criteria) this;
        }

        public Criteria andRegAmountIn(List<Integer> values) {
            addCriterion("reg_amount in", values, "regAmount");
            return (Criteria) this;
        }

        public Criteria andRegAmountNotIn(List<Integer> values) {
            addCriterion("reg_amount not in", values, "regAmount");
            return (Criteria) this;
        }

        public Criteria andRegAmountBetween(Integer value1, Integer value2) {
            addCriterion("reg_amount between", value1, value2, "regAmount");
            return (Criteria) this;
        }

        public Criteria andRegAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("reg_amount not between", value1, value2, "regAmount");
            return (Criteria) this;
        }

        public Criteria andDrugAmountIsNull() {
            addCriterion("drug_amount is null");
            return (Criteria) this;
        }

        public Criteria andDrugAmountIsNotNull() {
            addCriterion("drug_amount is not null");
            return (Criteria) this;
        }

        public Criteria andDrugAmountEqualTo(Integer value) {
            addCriterion("drug_amount =", value, "drugAmount");
            return (Criteria) this;
        }

        public Criteria andDrugAmountNotEqualTo(Integer value) {
            addCriterion("drug_amount <>", value, "drugAmount");
            return (Criteria) this;
        }

        public Criteria andDrugAmountGreaterThan(Integer value) {
            addCriterion("drug_amount >", value, "drugAmount");
            return (Criteria) this;
        }

        public Criteria andDrugAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("drug_amount >=", value, "drugAmount");
            return (Criteria) this;
        }

        public Criteria andDrugAmountLessThan(Integer value) {
            addCriterion("drug_amount <", value, "drugAmount");
            return (Criteria) this;
        }

        public Criteria andDrugAmountLessThanOrEqualTo(Integer value) {
            addCriterion("drug_amount <=", value, "drugAmount");
            return (Criteria) this;
        }

        public Criteria andDrugAmountIn(List<Integer> values) {
            addCriterion("drug_amount in", values, "drugAmount");
            return (Criteria) this;
        }

        public Criteria andDrugAmountNotIn(List<Integer> values) {
            addCriterion("drug_amount not in", values, "drugAmount");
            return (Criteria) this;
        }

        public Criteria andDrugAmountBetween(Integer value1, Integer value2) {
            addCriterion("drug_amount between", value1, value2, "drugAmount");
            return (Criteria) this;
        }

        public Criteria andDrugAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("drug_amount not between", value1, value2, "drugAmount");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountIsNull() {
            addCriterion("infusion_amount is null");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountIsNotNull() {
            addCriterion("infusion_amount is not null");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountEqualTo(Integer value) {
            addCriterion("infusion_amount =", value, "infusionAmount");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountNotEqualTo(Integer value) {
            addCriterion("infusion_amount <>", value, "infusionAmount");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountGreaterThan(Integer value) {
            addCriterion("infusion_amount >", value, "infusionAmount");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("infusion_amount >=", value, "infusionAmount");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountLessThan(Integer value) {
            addCriterion("infusion_amount <", value, "infusionAmount");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountLessThanOrEqualTo(Integer value) {
            addCriterion("infusion_amount <=", value, "infusionAmount");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountIn(List<Integer> values) {
            addCriterion("infusion_amount in", values, "infusionAmount");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountNotIn(List<Integer> values) {
            addCriterion("infusion_amount not in", values, "infusionAmount");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountBetween(Integer value1, Integer value2) {
            addCriterion("infusion_amount between", value1, value2, "infusionAmount");
            return (Criteria) this;
        }

        public Criteria andInfusionAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("infusion_amount not between", value1, value2, "infusionAmount");
            return (Criteria) this;
        }

        public Criteria andTcmAmountIsNull() {
            addCriterion("tcm_amount is null");
            return (Criteria) this;
        }

        public Criteria andTcmAmountIsNotNull() {
            addCriterion("tcm_amount is not null");
            return (Criteria) this;
        }

        public Criteria andTcmAmountEqualTo(Integer value) {
            addCriterion("tcm_amount =", value, "tcmAmount");
            return (Criteria) this;
        }

        public Criteria andTcmAmountNotEqualTo(Integer value) {
            addCriterion("tcm_amount <>", value, "tcmAmount");
            return (Criteria) this;
        }

        public Criteria andTcmAmountGreaterThan(Integer value) {
            addCriterion("tcm_amount >", value, "tcmAmount");
            return (Criteria) this;
        }

        public Criteria andTcmAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("tcm_amount >=", value, "tcmAmount");
            return (Criteria) this;
        }

        public Criteria andTcmAmountLessThan(Integer value) {
            addCriterion("tcm_amount <", value, "tcmAmount");
            return (Criteria) this;
        }

        public Criteria andTcmAmountLessThanOrEqualTo(Integer value) {
            addCriterion("tcm_amount <=", value, "tcmAmount");
            return (Criteria) this;
        }

        public Criteria andTcmAmountIn(List<Integer> values) {
            addCriterion("tcm_amount in", values, "tcmAmount");
            return (Criteria) this;
        }

        public Criteria andTcmAmountNotIn(List<Integer> values) {
            addCriterion("tcm_amount not in", values, "tcmAmount");
            return (Criteria) this;
        }

        public Criteria andTcmAmountBetween(Integer value1, Integer value2) {
            addCriterion("tcm_amount between", value1, value2, "tcmAmount");
            return (Criteria) this;
        }

        public Criteria andTcmAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("tcm_amount not between", value1, value2, "tcmAmount");
            return (Criteria) this;
        }

        public Criteria andExtAmountIsNull() {
            addCriterion("ext_amount is null");
            return (Criteria) this;
        }

        public Criteria andExtAmountIsNotNull() {
            addCriterion("ext_amount is not null");
            return (Criteria) this;
        }

        public Criteria andExtAmountEqualTo(Integer value) {
            addCriterion("ext_amount =", value, "extAmount");
            return (Criteria) this;
        }

        public Criteria andExtAmountNotEqualTo(Integer value) {
            addCriterion("ext_amount <>", value, "extAmount");
            return (Criteria) this;
        }

        public Criteria andExtAmountGreaterThan(Integer value) {
            addCriterion("ext_amount >", value, "extAmount");
            return (Criteria) this;
        }

        public Criteria andExtAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("ext_amount >=", value, "extAmount");
            return (Criteria) this;
        }

        public Criteria andExtAmountLessThan(Integer value) {
            addCriterion("ext_amount <", value, "extAmount");
            return (Criteria) this;
        }

        public Criteria andExtAmountLessThanOrEqualTo(Integer value) {
            addCriterion("ext_amount <=", value, "extAmount");
            return (Criteria) this;
        }

        public Criteria andExtAmountIn(List<Integer> values) {
            addCriterion("ext_amount in", values, "extAmount");
            return (Criteria) this;
        }

        public Criteria andExtAmountNotIn(List<Integer> values) {
            addCriterion("ext_amount not in", values, "extAmount");
            return (Criteria) this;
        }

        public Criteria andExtAmountBetween(Integer value1, Integer value2) {
            addCriterion("ext_amount between", value1, value2, "extAmount");
            return (Criteria) this;
        }

        public Criteria andExtAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("ext_amount not between", value1, value2, "extAmount");
            return (Criteria) this;
        }

        public Criteria andExamAmountIsNull() {
            addCriterion("exam_amount is null");
            return (Criteria) this;
        }

        public Criteria andExamAmountIsNotNull() {
            addCriterion("exam_amount is not null");
            return (Criteria) this;
        }

        public Criteria andExamAmountEqualTo(Integer value) {
            addCriterion("exam_amount =", value, "examAmount");
            return (Criteria) this;
        }

        public Criteria andExamAmountNotEqualTo(Integer value) {
            addCriterion("exam_amount <>", value, "examAmount");
            return (Criteria) this;
        }

        public Criteria andExamAmountGreaterThan(Integer value) {
            addCriterion("exam_amount >", value, "examAmount");
            return (Criteria) this;
        }

        public Criteria andExamAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("exam_amount >=", value, "examAmount");
            return (Criteria) this;
        }

        public Criteria andExamAmountLessThan(Integer value) {
            addCriterion("exam_amount <", value, "examAmount");
            return (Criteria) this;
        }

        public Criteria andExamAmountLessThanOrEqualTo(Integer value) {
            addCriterion("exam_amount <=", value, "examAmount");
            return (Criteria) this;
        }

        public Criteria andExamAmountIn(List<Integer> values) {
            addCriterion("exam_amount in", values, "examAmount");
            return (Criteria) this;
        }

        public Criteria andExamAmountNotIn(List<Integer> values) {
            addCriterion("exam_amount not in", values, "examAmount");
            return (Criteria) this;
        }

        public Criteria andExamAmountBetween(Integer value1, Integer value2) {
            addCriterion("exam_amount between", value1, value2, "examAmount");
            return (Criteria) this;
        }

        public Criteria andExamAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("exam_amount not between", value1, value2, "examAmount");
            return (Criteria) this;
        }

        public Criteria andLabAmountIsNull() {
            addCriterion("lab_amount is null");
            return (Criteria) this;
        }

        public Criteria andLabAmountIsNotNull() {
            addCriterion("lab_amount is not null");
            return (Criteria) this;
        }

        public Criteria andLabAmountEqualTo(Integer value) {
            addCriterion("lab_amount =", value, "labAmount");
            return (Criteria) this;
        }

        public Criteria andLabAmountNotEqualTo(Integer value) {
            addCriterion("lab_amount <>", value, "labAmount");
            return (Criteria) this;
        }

        public Criteria andLabAmountGreaterThan(Integer value) {
            addCriterion("lab_amount >", value, "labAmount");
            return (Criteria) this;
        }

        public Criteria andLabAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("lab_amount >=", value, "labAmount");
            return (Criteria) this;
        }

        public Criteria andLabAmountLessThan(Integer value) {
            addCriterion("lab_amount <", value, "labAmount");
            return (Criteria) this;
        }

        public Criteria andLabAmountLessThanOrEqualTo(Integer value) {
            addCriterion("lab_amount <=", value, "labAmount");
            return (Criteria) this;
        }

        public Criteria andLabAmountIn(List<Integer> values) {
            addCriterion("lab_amount in", values, "labAmount");
            return (Criteria) this;
        }

        public Criteria andLabAmountNotIn(List<Integer> values) {
            addCriterion("lab_amount not in", values, "labAmount");
            return (Criteria) this;
        }

        public Criteria andLabAmountBetween(Integer value1, Integer value2) {
            addCriterion("lab_amount between", value1, value2, "labAmount");
            return (Criteria) this;
        }

        public Criteria andLabAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("lab_amount not between", value1, value2, "labAmount");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andEmpNameLikeInsensitive(String value) {
            addCriterion("upper(emp_name) like", value.toUpperCase(), "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNoLikeInsensitive(String value) {
            addCriterion("upper(emp_no) like", value.toUpperCase(), "empNo");
            return (Criteria) this;
        }

        public Criteria andDeptNameLikeInsensitive(String value) {
            addCriterion("upper(dept_name) like", value.toUpperCase(), "deptName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}